import * as PIXI from 'pixi.js'
const pixis: { [key: string]: PIXI.ContainerChild | PIXI.Text } = {} // 界面PIXI对象
const pixiData: { [key: string]: Record<string, string | number> } = {} // 界面PIXI关联数据
const datas: { [key: string]: Wx.Card.Data } = {} // 卡牌数据
export const getPixi = (name: string | number) => {
  return pixis[name]
}
export const setPixi = (name: string | number, pixi: PIXI.ContainerChild | PIXI.Text) => {
  pixis[name] = pixi
}
export const getPixiData = (name: string | number) => {
  return pixiData[name]
}
export const setPixiData = (name: string | number, data: Record<string, string | number>) => {
  pixiData[name] = data
}
export const getData = (name: string | number) => {
  return datas[name]
}
export const setData = (name: string | number, data: Wx.Card.Data) => {
  datas[name] = data
}
